Skip to content

fix(button-toggle): extend the item hover zone over the group's gap and padding (#DS-4164) - #1892

Open
lskramarov wants to merge 3 commits into
mainfrom
fix/DS-4164
Open

fix(button-toggle): extend the item hover zone over the group's gap and padding (#DS-4164)#1892
lskramarov wants to merge 3 commits into
mainfrom
fix/DS-4164

Conversation

@lskramarov

Copy link
Copy Markdown
Contributor

No description provided.

@lskramarov lskramarov self-assigned this Aug 13, 2026
Copilot AI lite review requested due to automatic review settings August 13, 2026 13:02
@lskramarov lskramarov added the bug Something isn't working label Aug 13, 2026
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit f95cbac):

https://koobiq-next--prs-1892-h3z4x0ev.web.app

(expires Sun, 16 Aug 2026 14:03:09 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@github-actions

Copy link
Copy Markdown

🚨 E2E tests failed

Review the report for details.


💡 Comment /approve-snapshots to approve snapshot changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Extends kbq-button-toggle pointer hit-testing so each toggle’s interactive/hover area covers the group’s inter-item gap and surrounding padding, preventing “dead strips” between segments while keeping rendered pixels unchanged.

Changes:

  • Updated button-toggle styles to avoid clipping and to add ::before-based hit-area expansion that tiles the gap/padding across items (horizontal + vertical).
  • Introduced new size tokens to parameterize hit-area offsets (gap share + group padding).
  • Added Playwright E2E coverage to validate hit-testing, hover, click activation, and RTL mirroring.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/components/button-toggle/e2e.playwright-spec.ts Adds E2E tests that probe elementFromPoint ownership and validate hover/click behavior in gutter areas (incl. RTL).
packages/components/button-toggle/button-toggle.scss Implements expanded hit-area via :before and switches item overflow to visible with min-width: 0 to preserve truncation behavior.
packages/components/button-toggle/button-toggle-tokens.scss Adds CSS variables to compute hit-area reach based on border width, half-gap, and group padding.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lskramarov

Copy link
Copy Markdown
Contributor Author

/approve-snapshots

@github-actions

Copy link
Copy Markdown

🔄 Updating snapshots.

@github-actions

Copy link
Copy Markdown

✅ Snapshots updated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants